package com.flute.framework.index.fieldbuilder;

import org.apache.lucene.document.Field;
import org.apache.lucene.document.Field.Index;
import org.apache.lucene.document.Field.Store;

import com.flute.tools.util.StringUtil;

public class CharSameFieldBuilder extends AbstractLuceneFieldBuilder {

	@Override
	public Index getFieldIndex() {
		return Field.Index.NOT_ANALYZED;
	}

	@Override
	public Store getFieldStore() {
		return Field.Store.NO;
	}

	@Override
	public String process(String string) {
		return StringUtil.removeWhiteSpace(StringUtil
				.removeSpecialChars(string));
	}
}
